#include "problems/442.h"
#include "gtest/gtest.h"

TEST(TestProblemSolutions, TestProblem442)
{
    problem_442::Solution s;
    vector<int> nums{4, 3, 2, 7, 8, 2, 3, 1};
    ASSERT_EQ(s.findDuplicates(nums), vector<int>({2, 3}));
    nums = {5, 4, 6, 7, 9, 3, 10, 9, 5, 6};
    ASSERT_EQ(s.findDuplicates(nums), vector<int>({9, 5, 6}));
}